<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <label for="boy">
            <input type="radio" name="sex" id="boy" value="boy" v-model="sex">男
        </label>
        <label for="girl">
            <input type="radio" name="sex" id="girl" value="girl" v-model="sex">女
        </label>
        <h1>{{sex}}</h1>
    </div>
</body>
<script src="../js/http_cdn.bootcdn.net_ajax_libs_vue_2.6.6_vue.js"></script>
<script>
new Vue({
    el:'#app',
    data:{
        sex:'boy'
    },
})
</script>
</html>
